import Vue from 'vue';
import Router from 'vue-router';
import decorate from './views/form-decorate/index.vue';
import formUi from './views/form-ui/index.vue';
import preview from './views/form-decorate/preview.vue';
import blockly from './views/form-decorate/blockly.vue';
import compEditor from './views/comp-editor/index.vue';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            name: 'decorate',
            component: decorate
        },
        {
            path: '/comp',
            name: 'comp-editor',
            component: compEditor
        },
        {
            path: '/ui',
            name: 'form-ui',
            component: formUi
        },
        {
            path: '/blockly',
            name: 'blockly',
            component: blockly
        },
        {
            path: '/preview',
            name: 'preview',
            component: preview
        }
    ]
});
